import com.example.pipline.yu.activity.CreateActivityNode;
import com.example.pipline.yu.activity.Pipeline;
import com.example.pipline.yu.activity.ReviewActivityNode;
import com.example.pipline.yu.activity.TerminateActivityNode;

public class Main {
    public static void main(String[] args) {
        Pipeline pipeline = new Pipeline()
                .addNode(new CreateActivityNode())
                .addNode(new ReviewActivityNode())
                .addNode(new TerminateActivityNode());

        try {
            pipeline.execute();
            System.out.println("All nodes executed successfully.");
        } catch (Exception e) {
            System.err.println("com.example.pipline.yu.activity.Pipeline execution failed: " + e.getMessage());
        }
    }
}